
set(TARGETS "@DEPENDENCY_TARGETS@")
function(import_into_android_studio IMPORT_LOCATION)
    if(ANDROID AND EXISTS "${IMPORT_LOCATION}")
        foreach(target ${TARGETS})
            get_target_property(library_type ${target} TYPE)
            if("${library_type}" STREQUAL "SHARED_LIBRARY")
                get_target_property(lib_location ${target} LOCATION)
                file(COPY "${lib_location}" DESTINATION "${IMPORT_LOCATION}")
            endif()
        endforeach()
    endif()
endfunction()

if(NOT IMPORT_LOCATION)
    import_into_android_studio("${PROJECT_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}")
else()
    import_into_android_studio("${IMPORT_LOCATION}")
endif()
